org.springframework.beans.BeanInstantiationException: Failed to instantiate [[Lorg.springframework.web.multipart.MultipartFile;]: No default constructor found; nested exception is java.lang.NoSuchMethodException: [Lorg.springframework.web.multipart.MultipartFile;.()


原因是没有为接口的参数指定具体的名字。 public String upload(@RequestParam ( value = "files", required = false) MultipartFile[] files, Model model) {}

用 @RequestParam ( value = "files", required = false) 为参数指定名字即可。